<!--[if !IE 7]>
    <style type="text/css">
            #wrap {display:table;height:100%}
    </style>
<![endif]-->
<?php echo $this->headMeta(); ?>
<meta name="description" content="Whichclub è un portale completamente gratuito che permette a tutti di vedere, scegliere ed iscriversi agli eventi più importanti organizzati da locali, club e discoteche!" />
<meta name="keywords"    content="whichclub, discoteche, eventi, bar, feste, serate, locali, Brescia, Mantova, Cremona, wichclub, which club, whictclub, whithclub" />
<meta name="author"      content="Falanga Francesco and Beschi Jacopo" />
<?php echo $this->headTitle(); ?>
    <link rel="shortcut icon" href="images/favicon.gif" type="image/gif" />
<?php 
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/main.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/header.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/footer.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/side.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/editor.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/button.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/form.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/datePicker/datePicker_f.css');
    
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/club.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/fancybox/jquery.fancybox-1.3.4.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/eventStyle.css');
    $this->headLink()->prependStylesheet($this->baseUrl().'/media/css/datePicker/jquery-ui-1.8.16.custom.css');
?>
    <!--
    <link href='http://fonts.googleapis.com/css?family=Arvo' rel='stylesheet' type='text/css'>
    -->
<?= $this->headLink(); ?>
    
<script src="http://jquery-ui.googlecode.com/svn/trunk/jquery-1.4.2.js"></script>

<script src="http://www.google.com/jsapi" type="text/javascript"></script>

<script type="text/javascript">
    google.load("jquery", "1.3.2");
</script>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js">
</script>

<?php
    $this->headScript()->prependFile($this->baseUrl().'/media/js/eventFilter.js');
    $this->headScript()->prependFile($this->baseUrl().'/media/js/datePicker/core_widget.js');
    $this->headScript()->prependFile($this->baseUrl().'/media/js/datePicker/datePicker_f.js');
    $this->headScript()->prependFile($this->baseUrl(). '/media/js/fancybox/jquery.fancybox-1.3.4.pack.js');
    $this->headScript()->prependFile($this->baseUrl().'/media/js/tinyeditor/tinyeditor.js');
        // per il datepicker in creazione evento
    $this->headScript()->prependFile($this->baseUrl().'/media/js/datePicker/jquery-ui-1.8.16.custom.min.js');
    $this->headScript()->prependFile($this->baseUrl().'/media/js/datePicker/jquery-1.6.2.min.js');

    $this->headScript()->prependFile($this->baseUrl().'/media/js/jscroller.js');
?>
<?= $this->headScript(); ?>

    <!-- drop down menu -->
    <script type="text/javascript">
    $(document).ready(function () {
        // Add Scroller Object
        $jScroller.add("#scroller_container","#scroller","left",3);

        // Start Autoscroller
        $jScroller.start();

        $('#navigation li').hover(
                function () {
                        $('ul', this).css("width", "140px");
                        $('ul', this).css("padding", "7px");
                        $('ul', this).css("padding-top", "7px");
                        $('ul', this).css("padding-bottom", "7px");
                        //show its submenu
                        $('ul', this).slideDown(100);
                },
                function () {
                        //hide its submenu
                        $('ul', this).slideUp(100);
                }
        );
    });
    </script>
    <!-- datepicker -->
    <script type="text/javascript">
    $(function() {
            $( "#datepicker2" ).datepicker2({
                            dateFormat: 'yy-mm-dd',

            
                            onSelect: function(selectedDate) {
                                var dateObject=$("#datepicker2").datepicker2( "getDate" );                                
                                MyDate =  dateObject;
                                selectedDate = MyDate.getFullYear() + '-' + ('0' + (MyDate.getMonth()+1)).slice(-2) + '-' + ('0' + MyDate.getDate()).slice(-2);
                                //window.alert(selectedDate);
//                                location.href="<?php //echo $PHP_SELF; ?>?selectedDate";
                                document.location.replace("/Index/eventi/id/noid/days/"+selectedDate);
                            }}).datepicker2( "show" );
    });
    </script>